from data import *
import os
import shutil

x = input("你确定要删除所有作业吗? y/n \n")
if x == 'y':
    for name in ALL_DIR:
        d_path = name + "/01commit"
        for file in os.listdir(d_path):
            file_path = d_path + "/" + file
            if os.path.isdir(file_path):
                shutil.rmtree(file_path)
            else:
                os.remove(file_path)
            print("已删除 ",file_path)
print("程序已结束")